﻿using IBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace hahahah.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class xuesController : ControllerBase
    {
        public xuesController(iquanbuBLL bll)
        {
            Bll = bll;
        }

        public iquanbuBLL Bll { get; }
        [HttpGet]
        public yonghuModel denglu(string name, string mima)
        {
           return Bll.denglu(name, mima);
        }
        [HttpGet]
        public dynamic xianshi(int pageindex, int pagesize)
        {
            
            return Bll.xianshi(pageindex, pagesize);
        }

    }
}
